Smarter task parsing