Add macros, defsink and defsource