Warnings and removal of unneeded line