Add timeout draw every 0.5 seconds
Add pause and logging function