Extensions, Defines and Functions used