Global Library init function