Edited split statements, removed debug lines