Added log function to slave helper