Defining the schedules for controlled substances

How are drugs classified as controlled substances?