Added some ideas for type-based helper functions.