Added double checking for lines of code.