Function was not returning success, causing unexpected processing failures