Refactored backend for comments.