Added parallel for statements. No error handling yet and limited test cases.