Updated version
Fixed reflection, debug enabled