Adds effects loading to lua API.