Reads level in panel but problem with thread