Added a function for detecting dev enviroments.