Clean logic