Updating logic and stuffs.