What did he write during this time?