EE 2.8 compatability

I've updated the constructor to be compatible with EE 2.8.