Modularized code and added ScienceDaily support