Adding functions for multiple types