Improved the alignment code and changed POOL_APPEND to POOL_PREPEND.