@Override
	public void update(Observable o, Object arg) {
		if (o instanceof MP3Model) {
			if (arg instanceof List) {
				List<?> list = (List<?>) arg;
				if(list.get(0).getClass().equals(TrackBean.class)) {
					// If the list is full of tracks then we need to update the playlist
					view.setDisplayedPlaylist(model.getPlaylist());
				} else if (list.get(0).getClass().equals(File.class)) {
					// Display an error message to the user
					view.displayErrorMessage("Unable to add " + list.size() + " files. Please check the log.");
				} else {
					// Update the displayed artists
					view.updateArtists(model.getArtists());
				}
			} else if (arg instanceof TrackBean) {
				view.updatePlayingTrack((TrackBean) arg);
			} else if (arg == null) {
				view.stopPlayingTrack();
			} else if (arg instanceof String) {
				System.out.println("Update lastfm here!");
			}
		}
	}