Removed unused globals