Fixing execfile to send the whole file as one command
Additional logging