Add owner and group parameters to custom environment class