Added programattic splitting

also cut off 'from' when it extends beyond its place.