Added some fancy locks
Added locks to LastExecution(), make it return a copy