Adding splash logic