Seted up work enviroment

This is just a direct port from my code. Can/will change.