Move loadtest logic to loadtest.go