Simplified code so I start to unpick it.