Added basic permission management/checking