Change to new Ruby syntax