Allowed main-thread to handle tasks