Adds retrieving and posting functionality