Reduced mega function by 5x