Added use strict and switch to its instead of precondition

Signed-off-by: Ozan Turgut <ozanturgut@gmail.com>