Updated to accept vertical dimensions