Added Function definition