Simple select implementation
Modified logic layer so it works with my changes.