Reworking core features

Added debug method