WIP: making functions for all steps...