Timeout handling implemented + QDebug cleanup