We can set main handler to a private variable, so we don't need to call getMainHandler() in every method.