Removed redundant $.
Removed s and d from list comprehension.