Removed headersSent() params