Code note from open source project, also my basic library.