Fixed if/if/if changed to if/elif/elif