Refactored common stuff into base.go