This should be in a delayed job to not delay the response from returning.