Fixed depricated split function, use explode instead