Adding virtuals and debug