Added way to make certain segments of code in shared files only run on the server