Add conditional for running locally

Added a hacky conditional for running locally.