Updated Script with Prep-Type Select