Add space template function.