Now does multiple parameters.
Output function now included.