Add patch enumeration
Replace console.error with beef.debug