(#51) Slight tweak to allow for setting state on new resource creation.