Unhacked some code, now we use a thread for loading the levels.