Redesigned service and threads