Rectangle fix with and start of nearest functionality.