This is a simple library function