Made generic tab completion depend on only input paramters, not magic global variables