Removed unused global variables.