Added success and error functions for quick use