I hate this code.