Added try/catch to ensure that a custom param was sent back