[ADD] Added function definitions