Label logmsg and registerVariable as safe and pure