Added in a to_csv and also the ability to filter results