Changed function key to func (no keyword confusion).