Code to be used in other applications as a library