Moving cap tasks to rake