New addition after pre-sedex

Please review this code..