Add possiblity to define keys based on self.env method