Introduced 'loc' to handle changing stack pointer