Added Out-Null statements to avoid multiple outputs