Janus replacement prototype (C++)