Add credit functionality added