Wrote function slides up to invocation