Removed Main class and changed around method for modifying keys.