Still testing
Script divided into more sub parts