Function that takes 5 inputs, produces output.