Added init, before and after adjust functions