Added via settings support
Added via settings support and some hackity checks. Gonna need to write some tests for this one. Not confident in the if else statements running in my head