Speed update to solution 1.