I believe we can avoid polluting the code by passing the 'desktop' parameter in the params dictionary