Share functions and patterns