Added comments for the methods.