Updated to allow multiple instances on single page