Added basic update functionality