Add storage function for types