Changed public functions to return null if requests fail.