Updated to properly save updated time