Trying to make application:activate() faster to fix #215.