Add history marker before custom build