Working version with commands placed in functions
Working version with Import report