Final preparations before implementation of wrapping algorithm