Moved reply out of function and into handler in server