Added very nice get_cols function to .functions.