public void toggleRecord() {
		// Only want to execute this method if
		// we have a collection open and running
		if (parent.getCurrentCollection() == null)
			return;

		// Set the end time for this loop to stop
		if (recording) {
			recording = false;

			currentLoop.setEndTime(currentTime);
			loops.add(currentLoop);
			sm.addLoop(loops.size());

			System.out.println("Recording Ended");

			// Start recording and listening for inputs
		} else {
			if (loops.size() < 4) {
				currentTime = 0;
				currentLoop = new Loop(min);
				recording = true;
				System.out.println("Recording Started");
			}
		}

	}