Adding comment functionality but running into errors