Replaced queryUserDIM function with argv support.