Adding priority to todo and updating.