Adding function to load lua files and moving errors to a file.