Core library for misc