Don't forget to use proper logging here