Cleaned up height function and added 4d seeds