Removed unused functions, renamed smartextract