Added registration and fixed a bug with adding types