Removed stupid, unused variables and functions.