Changed output method in switch profile subroutine