Use dictionary to go through props