Removed delta from the updateLogic method and then renamed the updateLogic method to update.