Parsing powers in a better way