Removed unused methods and variables.