Fixed quartz timer and fixed issues with querying server improperly.