Reimplementation of Kalibro processing