Added some Require to make sure the tasks are executed in the correct order.