Make solutions to work in threads in background