Updated frame api to be more unixy (0 = success)