Changed arrays to lists.
Moreover, Permission created a lot of trouble. Hence, it hast been disabled for now.