Add debug mode and benchmark-init