Implemented inserts mechanism.