An improved algorithm to approximate the behaviour of flow lines