Optimizations, but seems to be something wrong... Takes too little time to complete