Moving space control to Link.cpp