Adding Processing callback function