Deleted unused methods and variables.