Improved scala syntax