Added button and green/red led code, pause state