Alter setopts
Move history configuration to seperate file