Added comments for all methods.