Added in delta time for update function