Using ant() function for executing tasks.