Attempt at speedup 1