Implement logic swap