More precise error handling + ignores modules that already have a define call