Fetching and Pushing function