Cleaned up and added settings to magiclistener