For me, both are grammatical, however, the first has a different rhythm and emphasis to the second. Perhaps the actor of the first sentence must be extra careful to perform the details whereas the actor in the second is merely participating in a mundane procedure.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.