Added common functions and environment (dev or prod)