Added 'push' mode.
Added configurable parameters to the 'pull' mode