Corrected var name typo
Updated slave usage and usage pattern