Added some lines to code