Added return functionality for credit