Finally fixed annoying error
Code runs much faster now