Pulled out a longer part of the addMeerkat method into another method