Refactored some static strings to the constants and added comments.