Removed hard coding of credit