Added splitting bit-stream function