Added an owner and a permission function.