Added logic stuff