Refactored a bit before sending.