Fixed Syntax Errors
Removed state dependency due to error

.otherwise() function to reroute when conditions are false