Added logging
Updated for moving slactrac out of mytools