It's better to use wait/notify