Position of adverb in the sentence

Hello everybody,
Is the word order in the following sentence correct?

The Consignee obliges himself to immediately hand over the password.

Or should the adverb “immediately” be used at the end of the sentence?

The Consignee obliges himself to hand over the password immediately.

Regards!

.
Either position is OK.
.

Thanks!