Added header file for use as a library