Port OPSWAT.

This is still untested but should work.