Done with cropping. Starting organization of functions.