Removed unused global variables