Refactored scripts to use double backets [[...]] instead of single brackets [...] for if statements.