Update logic refactored
Merge remote-tracking branch 'origin/master'