Added timer. GUI need to be fixed