Cleaned up solution and implemented throttle.