Functions will now return null if there was a error.