FYI, you can remove the out parameters if they are not used anywhere