Implemented basic scanning and patching (untested).