Add model to track and send errors

FIxed this