Added simple variant that I personally like to use. Also extracted the BaseLibrary to a standalone file, which is great!