Making code less complex