Added post method to update weight