Added side checker based on input