Improving function syntax