Adding reply funtions