Added selected_lower and selected_upper scripts.