Added basic logic for the bottom