Added Function Definitions