Added basic logic.