Functions and slopes ready