Added more checks to commands. Added permissions to commands.