Function definations added