Added more logic to the bash profile