Finished split implementation. MIGHT CRASH CODE