Added comments and changed method name