Added relays, better config loading