Separating reply handlers into their own functions for new vs. edited replies
Adding some PHPDoc comments