Added contract status parsing and storing