Added helper method to reduce complexity when passing options to task