Communication was being called twice.
Addition of snapshot argument in a function call