Added paralelisation for large values of n