Add detect corners