Updated so hash can be embedded automaticly.