Added basic opimisation step!

Bypasses states that simply redirect to another state