Added another output parameter on function