Some changes in sketches definition code.