Added start and end pins, need to write handlers for them.