Cleaned up sprintf syntax. Renamed variable for clairity