For working with scala