Fixing bugs, implementing new permission system. (stil ongoing)