Added top level run function for convenience of interacting with the library.