Added validations for origin and slot