Using controllers for logical operations