Set up a communication system between the different threads, so e.g. Lua code running in timer threads can safely access sqlite database
Simple viewer XP system