Move most configurations to config file