Implement some basic logic.