Use 1 for success response, 0 otherwise