Added more TTL functionality, close to full automation