This could have been done in a static map outside of init() but this is fine.