Moved pull logic to rake task. Updated scheduler and options to run rake...

... task and log. Updated some of the task logic.