Killing the ancestors might be an anti-ban thingy as you don't see so bot-like when you are randomly killing them. You could add anti-bans like randomly moving the mouse, mouse goes off-screen, rotating camera time to time, checking smithing skill, wiggle mouse, idle for a time (afk like)...