Implementation of the conswy