Adds first implementation of finding real gates.