Organize code and allow instrument selection