Add some functions to light-core