Added previous task functionality.