Working on slope detection