Modifying permissions and adding testing