Added very basic debugging