How to make a reliable center finder