Remove lentils from the heat, drain and reserve water for latter use. Add lentils to the onions. Add reserved water, stirring to prevent mixture from sticking to the bottom of the pan.