Added Permission support and cleaned up some old commands.