Added a root permission check and argument count check