Streamlining card function and adding to ignore file