Created SplitData() method. It must also have an option for splitting as per time stamps (for interactive mode)