Changed mode
Added chmod operation