Moved go running functions into separate file.