Implemented new approach for handling effects as an array. Code not ready yet.