Compare code expanded

Not sure if it'll be used more