Added function at the beginning to make sure script is being run as root