Implemented if-statements