Changed goTo's to statics