Single and multi-line for. Changed the structure to avoid redundancy