For more information on coppafish's method, please see the documentation here (some of this information will be outdated).