Added sandboxing and support for the fullReplace annotation.