Changed method names and added comments.