Added permissions, fixed config.xml