Added utility functions that are used in a lot of different situations
Fixed arbitor master bugs