Added code to load effect from file