Added whenever gem + schedule.rb.

Added check and send_query methods in the endpoint model.