Changed env injection method