Remove slave and func