Added some helper functions; added pull_request