Fixed late night compilation problem
Inital change to ee7 with write listener
Added functionality to the writelistener