In the middle of porting position.cpp...