Removed Warnings from code