Initial in-memory working version with logging