Some code. Need to streamline loggers.. Needs testing too.