Allow setting initial value via function arg

I thought this might be a useful feature to add :)