Added Update Function

Added Update Function