Change: function divided into parts