Initial attempt to simplify and customize library.