Added the graphical elements + fixed a small bug on perms.