Took out references to light and EC classes. Now working without crashing (yet)