Permission for update command + remove extra code