Removed weird execute permission on lua file
Added auto-pause when window loses focus