More Axe restructuring, changing some config values from int to double,
added function to duplicate code.