Wrapper for CGMINER