Moved ward setup code