Added functions for master