Fix whitespaces. Add initial part of the update function.