Added loading value from storage into a function