Added the target task argument; improved documentation