What does the keeping in mind in the following sentences mean? I find it hard to understand the whole sentence.
A: According to the present needs, a change should be made in laws. For example, in the past, there were restrictions put the merchants to practice free trade keeping in mind the upliftment of small scale industry and public sector.
B: Similarly, there can be changes in circumstances that require a change in laws. For example, in case of violence or attack, it becomes essential to put restriction over the common man keeping in mind the interests of the society.