Extend properly, remove closing ?>