Fixed commands and added permissions