Added reference
Added dirlistener