Added patched code