Add define and extension methods