Refactored version with ability to provide custom .vcl config