Cleaner API for registering sources. Still not fully satisfying, tho..