Adding functions to receive JSON