Changes to compiler and key_counter