Pseudo code to help me decide how this library will work