Added another method detData, now with lock to be locked.
2nd Try to synchronize console with shell.