Added possibility to specify the destination dir

as third argument to the call.