Redesigned it slightly, to accomadate latest suggestions from Caleb (getting rid of postconf being executed twice etc..)